package com.wangsd.web.face.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 小微商户进件
 */
@Data
@Entity
@Table(name = "micro")
@ApiModel(value = "小微商户进件", description = "小微商户进件")
public class Micro {
    @Id
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    /*身份证姓名*/
    @ApiModelProperty(value = "身份证姓名")
    @Column(name = "id_card_name",columnDefinition = "varchar(2000) default '' not null")
    private String idCardName;

    /*身份证号码*/
    @ApiModelProperty(value = "身份证号码")
    @Column(name = "id_card_number",columnDefinition = "varchar(2000) default '' not null")
    private String idCardNumber;

    /*银行账号*/
    @ApiModelProperty(value = "银行账号")
    @Column(name = "account_number",columnDefinition = "varchar(2000) default '' not null")
    private String accountNumber;

    /*加密手机号码*/
    @ApiModelProperty(value = "加密手机号码")
    @Column(name = "secret_contact_phone",columnDefinition = "varchar(2000) default '' not null")
    private String secretContactPhone;


    /*身份证人像面照片*/
    @ApiModelProperty(value = "身份证人像面照片")
    private String idCardCopy;

    /*身份证国徽面照片*/
    @ApiModelProperty(value = "身份证国徽面照片")
    private String idCardNational;

    /*门店门口照片*/
    @ApiModelProperty(value = "门店门口照片")
    private String storeEntrancePic;

    /*店内环境照片*/
    @ApiModelProperty(value = "店内环境照片")
    private String indoorPic;


    /*手机号码*/
    @ApiModelProperty(value = "手机号码",required = true)
    private String contactPhone;

    /*申请号*/
    @ApiModelProperty(value = "申请号")
    private String applymentId;

}
